#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "craytracer.h"
#include "csphere.h"
#include "cmesh.h"
#include <time.h>
#include <QString>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();

public:

    bool loadScene(QString filename);

    Ui::MainWindow *    m_pUI;

    clock_t             m_Start;
    clock_t             m_End;
    QTimer *            m_pTimer;

    CRaytracer *        m_pTracer;

    QGraphicsScene *    m_pScene;
};

#endif // MAINWINDOW_H
